After swinging between gains and losses, the BSE Sensex closed 77.94 points or 0.13% lower at 58,927.33